libextractor: Add missing header
authorRosen Penev <[email protected]>
Sat, 6 Jul 2019 22:38:56 +0000 (15:38 -0700)
committerRosen Penev <[email protected]>
Sun, 7 Jul 2019 00:53:30 +0000 (17:53 -0700)
Fixes compilation with -Wimplicit-function-declaration

Signed-off-by: Rosen Penev <[email protected]>
libs/libextractor/Makefile
libs/libextractor/patches/010-musl.patch [new file with mode: 0644]

index a314125d966e0fd00dd3fb0e1ac73b54620904cc..d1f15a58f00aaa624409ad45d8cff6e85bb9038c 100644 (file)
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libextractor
 PKG_VERSION:=1.9
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 # ToDo:
 # - package missing optional dependencies: libexiv2, gsf, librpm, smf, tidy
@@ -16,7 +16,7 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
 PKG_HASH:=f08f257d26c5e9b503f068d6753c8e55cb76f47f73a81da6ed2bba3de3fee2ff
 
-PKG_LICENSE:=GPL-3.0
+PKG_LICENSE:=GPL-3.0-or-later
 PKG_LICENSE_FILES:=COPYING
 PKG_MAINTAINER:=Daniel Golle <[email protected]>
 
diff --git a/libs/libextractor/patches/010-musl.patch b/libs/libextractor/patches/010-musl.patch
new file mode 100644 (file)
index 0000000..5786f3b
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/src/common/le_architecture.h b/src/common/le_architecture.h
+index b863ddb..713acdd 100644
+--- a/src/common/le_architecture.h
++++ b/src/common/le_architecture.h
+@@ -26,6 +26,8 @@
\r
+ #if WINDOWS\r
+ #include <sys/param.h>          /* #define BYTE_ORDER */\r
++#else\r
++#include <byteswap.h>\r
+ #endif\r
\r
+ /* This is copied directly from GNUnet headers */\r